libxl: Fix format string abuses / vulnerabilities
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 28 Oct 2010 11:05:45 +0000 (12:05 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Thu, 28 Oct 2010 11:05:45 +0000 (12:05 +0100)
commita07b5b8acd4a86f87937891f03f71a57c3cd0880
tree32a0d96514d97fc7d7a9aae18c2234acb80299b5
parent1e346e3f47660883cf7618b8a62831b04b81ddce
libxl: Fix format string abuses / vulnerabilities

There are a few places where libxl__xs_write is passed a variable
value to write to xenstore, but the semantics are that the first char*
is a format string.  So use "%s".

This fixes the following errors reported by some newer compilers:
 libxl.c: In function "libxl_create_cpupool":
 libxl.c:3981: error: format not a string literal and no format arguments
 libxl.c:3983: error: format not a string literal and no format arguments
 libxl.c: In function "libxl_cpupool_movedomain":
 libxl.c:4095: error: format not a string literal and no format arguments

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Gianni Tedesco <gianni.tedesco@citrix.com>
tools/libxl/libxl.c